﻿@using Abp.Extensions
@using Akso.Entities
@using Akso.Web.Areas.Mpa.Models.Common.Modals
@model Akso.Web.Areas.FinanceModule.Models.Invoices.CreateOrEditInvoiceModalViewModel
@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("Pages_FinanceModule_Invoices_Edit") + ": " + Model.Invoice.InvoiceStartCode) : L("Pages_FinanceModule_Invoices_Create")))
<div class="modal-body">

    <form name="ObjectForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="InvoiceNumber" id="InvoiceNumber" />
        <input type="hidden" name="IsUseNumber" id="IsUseNumber" />
        @if (Model.IsEditMode)
        {
            <input type="hidden" name="Id" value="@Model.Invoice.Id" />
        }

        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" id="InvoiceStartCode" name="InvoiceStartCode" value="@Model.Invoice.InvoiceStartCode" class="form-control edited" required maxlength="@Invoice.MaxCodeLength" />
            <label>@L("Pages_FinanceModule_Invoices_GridColumn_InvoiceStartCode")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" id="InvoiceEndCode" name="InvoiceEndCode" value="@Model.Invoice.InvoiceEndCode" class="form-control edited" required maxlength="@Invoice.MaxCodeLength" />
            <label>@L("Pages_FinanceModule_Invoices_GridColumn_InvoiceEndCode")</label>
        </div>
        <div class="form-group form-md-line-input form-md-floating-label no-hint">
            <input type="text" name="Remark" value="@Model.Invoice.Remark" class="form-control edited" maxlength="@Invoice.MaxRemarkLength" />
            <label>@L("Pages_FinanceModule_Invoices_GridColumn_Remark")</label>
        </div>



    </form>

</div>

@Html.Partial("~/Areas/Mpa/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")
